Next: Choosing a Style, Previous: Styles, Up: Styles [Contents][Index]
If you’re lucky, one of CC Mode’s built-in styles might be just what you’re looking for. These are:
gnuCoding style blessed by the Free Software Foundation for C code in GNU programs.
k&rThe classic Kernighan and Ritchie style for C code.
bsdAlso known as “Allman style” after Eric Allman.
whitesmithPopularized by the examples that came with Whitesmiths C, an early commercial C compiler.
stroustrupThe classic Stroustrup style for C++ code.
ellemtelPopular C++ coding standards as defined by “Programming in C++, Rules and Recommendations,” Erik Nyquist and Mats Henricson, Ellemtel18.
linuxC coding standard for Linux (the kernel).
pythonC coding standard for Python extension modules19.
javaThe style for editing Java code. Note that the default
value for c-default-style installs this style
when you enter java-mode.
awkThe style for editing AWK code. Note that the default
value for c-default-style installs this style
when you enter awk-mode.
userThis is a special style created by you. It consists of the
factory defaults for all the style variables as modified by
the customizations you do either with the Customization
interface or by writing setqs and
c-set-offsets at the top level of your
.emacs file (see Config Basics). The
style system creates this style as part of its initialization
and doesn’t modify it afterwards.
This document is available at http://www.doc.ic.ac.uk/lab/cplus/c++.rules/ among other places.
Python is a high level scripting language with a C/C++ foreign function interface. For more information, see http://www.python.org/.
Next: Choosing a Style, Previous: Styles, Up: Styles [Contents][Index]